package com.tester.zc.test001.third;

/**
 * @Author zhoucan
 * @Date 2022/12/4
 */
public class Earth {
    //定义私有构造方法
    private Earth(){
        System.out.println("地球诞生");
    }
    //在类加载的时候实例化
    private static Earth earth = new Earth();
    public static Earth getEarth() {
        return earth;
    }
}
